package com.flurry.android;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;
import com.flurry.android.caching.ObjectData;

final class by extends CacheDBOperations
{
  public by(Context paramContext, String paramString)
  {
    this.cD = dw.e(paramContext, paramString);
    this.TAG = "PendingOperationsDB";
    this.cE = "pendingDataTable";
  }

  final ObjectData getObjectById(String paramString)
  {
    Cursor localCursor = this.cD.getReadableDatabase().query(this.cE, null, "objectsId='" + paramString + "'", null, null, null, "objectsId ASC, julianday(timestamp)");
    ObjectData localObjectData;
    String str1;
    String str2;
    if (localCursor.moveToFirst())
    {
      int i = localCursor.getColumnIndex("objectsId");
      int j = localCursor.getColumnIndex("collectionName");
      int k = localCursor.getColumnIndex("key");
      int m = localCursor.getColumnIndex("value");
      localObjectData = null;
      do
      {
        str1 = localCursor.getString(i);
        str2 = localCursor.getString(j);
        String str3 = localCursor.getString(k);
        String str4 = localCursor.getString(m);
        if (localObjectData == null)
        {
          if (!TextUtils.isEmpty(str2))
            break;
          localObjectData = new ObjectData(str1);
        }
        localObjectData.addKeyValue(str3, str4);
      }
      while (localCursor.moveToNext());
    }
    while (true)
    {
      localCursor.close();
      return localObjectData;
      localObjectData = new ObjectData(str1, str2);
      break;
      localObjectData = null;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.by
 * JD-Core Version:    0.6.2
 */